package com.anhry.www.safety.manage.djpd.bean;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 安办抽查分级评定记录
 */
@Entity
@Table(name = "TB_DJPD_CHECK")
@SequenceGenerator(name = "TB_DJPD_CHECK_SEQ", sequenceName = "TB_DJPD_CHECK_SEQ", allocationSize = 1)
public class TbDjpdCheck implements java.io.Serializable {

	// Fields

	private Long id;

	private Long applyId; //评级记录ID

	private Date checkDate;//抽查时间

	private String checkPerson; //抽查人

	private Date saveDate;// 结果保存时间

	private String checkResult; //抽查结果

	private String  phone; //抽查人联系方式;

	private String checkDept; //抽查部门 2：县（市，区）安委会抽查  1：市安办抽查
	

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "TB_DJPD_CHECK_SEQ")
	@Column(name = "ID", precision = 11, scale = 0)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "CORP_ID", precision = 11, scale = 0)
	public Long getApplyId() {
		return applyId;
	}

	public void setApplyId(Long applyId) {
		this.applyId = applyId;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CHECK_DATE", length = 7)
	public Date getCheckDate() {
		return checkDate;
	}

	public void setCheckDate(Date checkDate) {
		this.checkDate = checkDate;
	}

	@Column(name="CHECK_PERSON", length=64)
	public String getCheckPerson() {
		return checkPerson;
	}

	public void setCheckPerson(String checkPerson) {
		this.checkPerson = checkPerson;
	}
	
	@Column(name="CHECK_DEPT", length=1)
	public String getCheckDept() {
		return checkDept;
	}

	public void setCheckDept(String checkDept) {
		this.checkDept = checkDept;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "SAVE_DATE", length = 7)
	public Date getSaveDate() {
		return saveDate;
	}

	public void setSaveDate(Date saveDate) {
		this.saveDate = saveDate;
	}

	@Column(name="CHECK_RESULT", length=1024)
	public String getCheckResult() {
		return checkResult;
	}

	public void setCheckResult(String checkResult) {
		this.checkResult = checkResult;
	}

	@Column(name="PHONE", length=32)
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

}